/**    
 * @{#} Page.java Create on Apr 24, 2012 8:44:05 PM    
 *    
 * Copyright (c) 2012 by 悠忧虫.    
 *    
 * @author 悠忧虫
 * @version 1.0    
 */
package tk.sunlatus.project.common.domain;

import java.io.Serializable;

import tk.sunlatus.project.common.constants.SunlatusConstants;

/**
 * @{# Page.java Create on Apr 24, 2012 8:44:05 PM
 * 
 *     类功能说明: 分页对象
 * 
 *     <p>
 *     Copyright: Copyright(c) 2012
 *     </p>
 * @Version 1.0
 * @Author 悠忧虫
 */
public class Page implements Serializable {

    /**
     * serialVersionUID：
     */
    private static final long serialVersionUID = 2774950433824921736L;

    // 起始记录
    private Integer start;

    // 每页记录数
    private Integer pageSize;

    // 页数
    private Integer pageNum = Integer.valueOf(SunlatusConstants.Page.DEFAULT_START);

    // 总页数
    private Integer totalPages;

    // 总记录数
    private Integer totalRecord;

    public Integer getPageNum() {
        return pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public Integer getStart() {
        return start;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public Integer getTotalRecord() {
        return totalRecord;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public void setTotalRecord(Integer totalRecord) {
        this.totalRecord = totalRecord;
    }

}
